<?php
$uid = $_POST['uid'];

include ("conn.php");
//下面是读取数据
$sql = "SELECT * FROM collection WHERE uid=".$uid;
$result = $conn->query($sql);
$arr = array();
include ("findPage.php"); 
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
    	array_push($arr,findPage($row['pid']));
    }
}
echo json_encode($arr);

?>